package rbac.test

import rego.v1
import data.rbac.authz

rule01 if {
    input.x > 50
    input.y > 100
}

test_rule01 if {
	rule01 with input as {
		"x": 100,
		"y": 200,
	}
}

test_allowed if {
    authz.allow with input as {
        "user": "alice",
        "action": "read",
        "object": "server123",
    }
}

test_allow_defined if {
   not authz.allow with input as {
        "user": "alice",
        "action": "read",
        "object": "salary",
   }
}